using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_Base_SchemeDetailMap : EntityTypeConfiguration<t_Base_SchemeDetail>
    {
        public t_Base_SchemeDetailMap()
        {
            // Primary Key
            this.HasKey(t => t.FDetailID);

            // Properties
            this.Property(t => t.FLinkType)
                .HasMaxLength(30);

            this.Property(t => t.FLinkID)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("t_Base_SchemeDetail");
            this.Property(t => t.FDetailID).HasColumnName("FDetailID");
            this.Property(t => t.FSchemeID).HasColumnName("FSchemeID");
            this.Property(t => t.FLinkType).HasColumnName("FLinkType");
            this.Property(t => t.FLinkID).HasColumnName("FLinkID");
            this.Property(t => t.FRecType).HasColumnName("FRecType");
        }
    }
}
